<template>
  <h1>EL-选择器组件</h1>
  <el-select v-model="city" placeholder="请选择一个你喜欢的城市" style="width:40%" >
    <el-option value="bj" label="北京"></el-option>
    <el-option value="sh" label="上海"></el-option>
    <el-option value="cz" label="常州"></el-option>
    <el-option value="wh" label="武汉"></el-option>
  </el-select>
  <h4>您选择的城市是:{{city}}</h4>
</template>

<script setup>
import {ref} from "vue";

const city = ref('');
</script>

<style scoped>

</style>